.text-prompt-card {
  background: linear-gradient(135deg, var(--card-bg), var(--card-bg-darker));
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 24px;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed);
}

.text-prompt-card:hover {
  transform: translateY(-5px);
}

.text-prompt-card .ant-card-body {
  padding: 24px;
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
}

.prompt-title {
  color: var(--text-color) !important;
  margin-bottom: 0 !important;
  font-weight: 600;
}

.prompt-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
}

.prompt-header .anticon {
  color: var(--primary-color);
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s;
}

.prompt-header .anticon:hover {
  transform: scale(1.2);
  color: var(--secondary-color);
}

.prompt-description {
  color: var(--text-secondary) !important;
  display: block;
  margin-bottom: 16px;
  line-height: 1.6;
}

.prompt-input {
  background-color: var(--card-bg-darker);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  border-radius: var(--border-radius);
  margin-bottom: 8px;
  resize: none;
  padding: 14px;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.prompt-input:hover:not([disabled]) {
  border-color: rgba(99, 102, 241, 0.5);
}

.prompt-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
  outline: none;
}

.prompt-input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.prompt-input[disabled] {
  background-color: rgba(30, 41, 59, 0.7);
  color: rgba(148, 163, 184, 0.5);
  cursor: not-allowed;
}

.char-count {
  text-align: right;
  margin-bottom: 20px;
  font-size: 12px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.prompt-examples {
  margin-bottom: 24px;
  background-color: rgba(0, 0, 0, 0.15);
  padding: 16px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.example-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.example-tag {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
  color: var(--text-color);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.example-tag:hover:not(.disabled) {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(14, 165, 233, 0.2) 100%);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.example-tag.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.prompt-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.generate-button {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border: none;
  border-radius: 8px;
  font-weight: 500;
  height: 44px;
  padding: 0 20px;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.generate-button:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.generate-button[disabled] {
  opacity: 0.6;
  background: linear-gradient(to right, #6b7280, #9ca3af);
}

.prompt-tip {
  color: var(--text-secondary) !important;
  font-size: 13px;
  opacity: 0.8;
}

/* 加载动画 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.generate-button .anticon-loading {
  animation: spin 1.2s linear infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .text-prompt-card .ant-card-body {
    padding: 16px;
  }
  
  .prompt-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .generate-button {
    width: 100%;
  }
  
  .example-tags {
    gap: 8px;
  }
  
  .example-tag {
    padding: 4px 12px;
    font-size: 12px;
  }
}